package top.stmo.stmoBlog.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article {

    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String summary;

    /**
     * 评论数
     */
    private Integer commentCounts;

    /**
     * 浏览量
     */
    private Integer viewCounts;

    /**
     * 博客背景图片
     */
    private String articleImg;

    /**
     * 内容Id
     */
    private Long bodyId;

    /**
     * 类别Id
     */
    private Long categoryId;

    /**
     *是否置顶
     */
    private Integer weight;

    /**
     * 创建时间
     */
    private Long createDate;

    /**
     * 是否原创
     */
    private Integer original;
}
